﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="ERP.UserList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>User List</h2>
<br />
<a href="UserForm.aspx">Add a new user</a>
<asp:Repeater runat="server" ID="repUsers">
    <HeaderTemplate>
    <table class="simple-table">
        <tr>
            <th>
            <span>Email</span>
            </th>
            <th>
            <span>Roles</span>
            </th>
            <th>
            <span>Permissions</span>
            </th>
        </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td>
                <a href="UserForm.aspx?UserId=<%#Eval("UserId") %>">
                    <%#Eval("EMail") %>
                </a>
            </td>
            <td>
                <span><%#Eval("Roles")%></span>
            </td>
            <td>
                <span><%#Eval("Permissions")%></span>
            </td>
            
        </tr>
        <br />
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
</asp:Repeater>
</asp:Content>
